import java.io.IOException;

public class Test03 {
    public static void main(String[] args) throws IOException {
        Runtime r1=Runtime.getRuntime();
        /*r1.exit(0);*/
        System.out.println("看看我执行了吗·");
        System.out.println(r1.availableProcessors());
        System.out.println(r1.maxMemory()/1024/1024);
        System.out.println(r1.totalMemory()/1024/1024);
        System.out.println(r1.freeMemory()/1024/1024);
        try {
            r1.exec("shutdown -s-t 3000");
        } catch (IOException e) {
            throw new RuntimeException(e);
        }
        r1.exec("shutdown -a");

    }

}
